import requests
from bs4 import BeautifulSoup
import bs4
def get_info(url):
    result=requests.get(url)
    result.encoding=result.apparent_encoding
    soup=BeautifulSoup(result.text,'html.parser')
    trs=soup.find('ul','neirongye_lb').children
    for tr in trs:
        if isinstance(tr,bs4.element.Tag):
            print(tr('span')[0].text,tr('a')[0].text)
 
for page in range(1,6):
    url="http://www.techlabplt.com/sspu/list%d.html" %(page)
get_info(url)
